package com.estronger.shopmanage.utils;

import android.app.Activity;

/**
 * Created by Administrator on 2017-12-20.
 */

public class ActivityUtils {
    //判断Activity是否为空或是否已被销毁
    public static boolean isRunning(Activity activity){
        if(activity==null||activity.isDestroyed()||activity.isFinishing()){
            return false;
        }else{
            return true;
        }
    }
}
